-- GENERATED SPELL FOR [Jormuttar] --


function spell0_30340(pUnit, Event) --@Acid Spit,n/a--
pUnit:FullCastSpellOnTarget(61597,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30340', 2000, 1)
end

function spell1_30340(pUnit, Event) --@Sweep,Self--
pUnit:FullCastSpellOnTarget(61598,pUnit)
pUnit:RegisterEvent('Sorts_30340', 1500, 1)
end

function Sorts_30340(pUnit, Event)
local choix_sorts_30340 = math.random(0, 1)
if choix_sorts_30340 == 0 then
pUnit:RegisterEvent('spell0_30340', 1, 1)
end
if choix_sorts_30340 == 1 then
pUnit:RegisterEvent('spell1_30340', 1, 1)
end
end

function mob30340_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30340', math.random(1500, 3000), 1)
end

function mob30340_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30340_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30340_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30340, 1, 'mob30340_Action')
RegisterUnitEvent(30340, 2, 'mob30340_Leave')
RegisterUnitEvent(30340, 3, 'mob30340_Kill')
RegisterUnitEvent(30340, 4, 'mob30340_Die')
